package Chapter2.Comparing.c5;

public class Exam2 {
    public static int num = 0;
    String name;
    static{
        System.out.println(num+":codeA");
    }
    {
        System.out.println(num+":codeB");
        num++;
    }
    public Exam2(String name){
        System.out.println(num+name);
        this.name=name;
        num++;
    }
    public static void main(String[] args){
        Exam2 people = new Exam2("Tom");
        Exam2 people2 = new Exam2("Jim");
    }
}
